﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace Gao.Poker.App.Store
{
    /// <summary>
    /// Interaction logic for StoneMain.xaml
    /// </summary>
    public partial class StoneMain : UserControl
    {
        private MarketView _marketView;
        private SellHistoryView _sellHistoryView;

        private static StoneMain _instance;

        public static StoneMain Instance()
        {
            return _instance ?? (_instance = new StoneMain());

        }

        public StoneMain()
        {
            InitializeComponent();

            _marketView = new MarketView();
            _sellHistoryView = new SellHistoryView();

            cc.Content = _marketView;
        }


        private void SellHistory_Click(object sender, RoutedEventArgs e)
        {
            cc.Content = _sellHistoryView;
        }

        private void Sell_Click(object sender, RoutedEventArgs e)
        {
            cc.Content = _marketView;
        }
    }
}
